$OpenBSD: patch-src_qt_src_3rdparty_webkit_Source_JavaScriptCore_wtf_NullPtr_h,v 1.1 2017/04/27 16:32:32 espie Exp $
--- src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/NullPtr.h.orig	Thu Apr 27 15:12:54 2017
+++ src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/NullPtr.h	Thu Apr 27 15:24:19 2017
@@ -35,12 +35,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
     #define __has_feature(feature) 0
 #endif
 
-#if __has_feature(cxx_nullptr) || (GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && _MSC_VER >= 1600 && !COMPILER(INTEL))
+#if __clang__ || __has_feature(cxx_nullptr) || (GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || (defined(_MSC_VER) && _MSC_VER >= 1600 && !COMPILER(INTEL))
 
 #define HAVE_NULLPTR 1
 
 #else
 
+/* XXX clang does define nullptr_t in a weird way even when it doesn't have
+ * the constant nullptr
+ */
 namespace std {
     class nullptr_t { };
 }
